package com.zs.framework.mail.producer;

import com.zs.framework.mail.mailinfo.MailInfo;
import com.zs.framework.mail.utils.SendEmailProducer;
import lombok.Getter;
import lombok.Setter;

import javax.mail.internet.MimeMessage;

/**
 * @author zhougf
 * @version 1.0
 * @date 2020/07/28
 */
@Getter
@Setter
public abstract class AbstractMailProducer<T> implements MailProducible<T> {


    /**
     * 真正发送提供者
     */
    protected SendEmailProducer sendEmailProducer;

    /**
     * 发送邮件
     * @param theme
     * @param content
     * @return
     */
    @Override
    public abstract Boolean sendMail(String theme, String content);
}
